package com.test.tinyurl.domain.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.test.tinyurl.domain.bean.Link;

/**
 * 短链服务层
 */
public interface LinkService extends IService<Link> {

    /**
     * 保存长链接信息
     *
     * @param fullLink
     * @param hashCode
     * @return
     * @throws Exception
     */
    String insertLink(String fullLink, String hashCode) throws Exception;


    /**
     * 查询长连接信息
     *
     * @param hashCode
     * @return
     * @throws Exception
     */
    boolean selectLink(String hashCode) throws Exception;
}
